package com.doge.controller.wx;

import com.doge.bean.base.BaseRespVo;
import com.doge.bean.pojo.user.User;
import com.doge.bean.vo.user.UserIndexVO;
import com.doge.service.wx.user.WxUserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: project2-wechat-mall
 * @description: 用户
 * @author: zhu lei
 * @create: 2021-12-02 10:14
 **/
@RestController
@RequestMapping("wx/user")
public class WxUserController {

    @Autowired
    WxUserServiceImpl wxUserService;

    @RequestMapping("index")
    public BaseRespVo index() {
        UserIndexVO userIndexVO = wxUserService.getUserIndex();
        return BaseRespVo.ok(userIndexVO);
    }
}